drm/i915: fix TLB invalidation for Gen12 video and compute engines
authorAndrzej Hajda <andrzej.hajda@intel.com>
Mon, 14 Nov 2022 10:38:24 +0000 (11:38 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 1 Dec 2022 06:42:33 +0000 (06:42 +0000)
commit32d40b60a8f3325ecaa18a93c999912c6b9abb33
treea1fe0545e32cb047e3a181332949eafa9d3924ae
parente503ca240973335ab6b2f9249baf4af168033e2a
drm/i915: fix TLB invalidation for Gen12 video and compute engines

Origin: https://git.kernel.org/linus/04aa64375f48a5d430b5550d9271f8428883e550
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2022-4139

In case of Gen12 video and compute engines, TLB_INV registers are masked -
to modify one bit, corresponding bit in upper half of the register must
be enabled, otherwise nothing happens.

CVE: CVE-2022-4139
Suggested-by: Chris Wilson <chris.p.wilson@intel.com>
Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Fixes: 7938d61591d3 ("drm/i915: Flush TLBs before releasing backing store")
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Gbp-Pq: Topic bugfix/x86
Gbp-Pq: Name drm-i915-fix-TLB-invalidation-for-Gen12-video-and-co.patch
drivers/gpu/drm/i915/gt/intel_gt.c